//
//  LoginViewModel.h
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/6/3.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LoginViewModel : NSObject

/**
 登录

 @param mob 手机号
 @param pwd 密码
 @param cmp 成功回调
 */
-(void)loginWithMob:(NSString*)mob pwd:(NSString*)pwd cmp:(void(^)())cmp;
/**
 注册

 @param mob 手机号
 @param checkCode 验证码
 @param pwd 密码
 @param cmp 成功回调
 */
-(void)registerWithMob:(NSString*)mob checkCode:(NSString*)checkCode pwd:(NSString*)pwd cmp:(void(^)())cmp;

/**
 获取验证码

 @param mob 手机号
 @param cmp 成功回调
 */
-(void)fetchCheckCode:(NSString*)mob cmp:(void(^)())cmp;
/**
 忘记密码

 @param mob 手机号
 @param checkCode 验证码
 @param pwd 密码
 @param cmp 成功回调
 */
-(void)fogotPwdWithMob:(NSString*)mob checkCode:(NSString*)checkCode pwd:(NSString*)pwd cmp:(void(^)())cmp;

/**
 修改密码

 @param mob 手机吗
 @param checkCode 验证码
 @param pwd 密码
 @param cmp 成功回调
 */
-(void)editPwdWithMob:(NSString*)mob checkCode:(NSString*)checkCode pwd:(NSString*)pwd cmp:(void(^)())cmp;
@end

NS_ASSUME_NONNULL_END
